changed db functions, removed validation function