Resolved bugs related to wrong time at DB & Web Server

Update daily limits also had code error, it should no be static
functions.
removed un ncessary code.