Improve layout of create form.
Lock database before deletion. This avoids having the handle still open
on a deleted database.