Merge pull request #4 from tfermm/master

added database initialization
Added generic functions class