a little database check