A api for communication with a database.