edited databasehelper just a little bit