back-end db api