moved convertId helper to the dbhelper class