change database.yml to postgresql and precompile asset pipeline