Update gitignore, fix substitution in database.yml, add Gemfile.lock