added little database helper