Added string validation to Rack app
Renamed `db_query` --> `query` in Rack app