resuts page conncet to db work and a bit of the qurey work