writing dbHelper