added 2 files, working with db functions