made postgres db read-only + fixed error in environment.rb