Solved some bugs in database helper
Refactoring database helper
Check database version and copy it from asset routine