Key-value database api with plugable databases