Normalize input

Added a normalize input
Note that I added localhost into database.yml