Moving to Postgres and SQLite instead of couch

Signed-off-by: Alan Gardner <alan@armoin.com>
Merge branch 'db_transfer'