final tweaks, added user agent field to db, ready for production