Adding query builder handler and initial database stuffs