getting database errors