added rails and changed db to postgres