Made some error handling on some routes to prevent empty strings to be passed to the DB function.
start