package names are text fields. some adjustments to sql helper functions to work with mysql