Some fixes to the database and for empty inputs
Addresses issue with dropped columns. Serial increment did not reset.

Merge branch 'postgre_implementation' of https://github.com/ksin/dbcoverflow into postgre_implementation