fixed initial data queries to work with mysql