Fixed database helper