Server type database 1a

This is the fix version of #563.
In this version, DOM elements of the dialog are created with jQuery functions instead of a raw HTML.