changed foods table, did a shitload of refactoring