Added functions to created db for frequencies