Backbase interview question

Design an API to read and write an a DB