Add new database log code. Add new item functionality in mongo_connection and server