refactor dbhelper, adding function of retrieving generated key from sql
execution
update register functionality and interest functionality