db api and bootstrap login