Add psycopg2 to requirements.
Minor typo fixes on handlers module.
Fix main module and add one test more.