criteria and dynamic database loading struggles, can have bugs