added cap and database.yml edits