add exception to database functions