Modal instead of prompt for delete

Display a modal asking for database name instead of a simple prompt.
Make a ModalView to dry the code a bit