removed unused variables
read password from database.yml if it exists
read password from database.yml if the file exists