added custom db files
functions.c not needed anymore, its in db.c now
generalizations