Added test for db_last_error and queried executed without dieing on error