make DatabaseHelper more generic