Moved functions file to functions folder
Created seperate files for db and reddit functions