split functions in DBHelper.class into different new classes