Cleanup
Add 1 second delay before refreshing page
Ignore database.yml file
Reformatted code
Added .to_i and .to_s on ActiveRecord finds