added handler init for db query