small fixes in DBHelper