Improve some details of utils and db functions
Add tracking code for browser user agent and remote address