inventry database api