updated rspec tests and change database to postgresql