added functions to util and made customer analytics page
changed the login for the owner to access analytics page