Plumbs in attachment persistence and adds the tables. Currently MySQL only, no user functionality yet.