Delete the database before constructing it if it exists
Rename API endpoints to follow api_* as function name
Add unit-tests to test pkgdb.api.extras