Refactor DatabaseHelper extracting queries and constant from XML files