Services: Database design & API

Work in progress