Storing query errors in our Database class