convert deploy_db to use psycopg2 driver too
convert deploy_db to use psycopg2 driver too

- replace dead calls to web.database `db`
- allow prepared statements to fail during connection init since we need connection prior to deployment

informatics-isi-edu/hatrac,informatics-isi-edu/hatrac