few changes still not querying database