Move database.yml into example file
Implement error message for edit page