new methods, fixing result set bug, connection with db