Change db to pg and rails 4 to 3