First pass at abstracting indexeddb and form actions for reuse by other modules.