check errors in database functions