API for external database creation