Refactoring postgres states and creating db user
Code complete. Missing TODOs and virtualenv management.