integrated postgres database

created migration file
create rakefile for easy migration
created script file for easy database creation