Moved hashtbl database creation into own function
Moved the hashtbl creation function to setup