Update database.rb to use localhost instead of 127.0.0.1