Some bugfixes, added database dump.

Database dump was added (dump.sql)
Try-Catch blocks were replaced with if(Database::hasRows()) statements