Configuring an External Database to Store User History