Add error message to all querys and database connect