[Refactor] server_databases.php refactor:

0.split long lines
1 render the HTML element at once
2 fix code indention
3 use $html for readability