created query and insert in SQLOpenHelper