Move database file into config directory.

This seems to be a better place for migrations.
Remove prefix for API calls.