updated CHMOD and changes in database.yml