working on api/database