Fix database creation form and api