fixed some column queries stuff