Added new query based on a one hour interval and change ip address of
database