adding postgresql and rake tasks updated