[one more refactor] server_databases.php

server_databases.php refactor
1. code indention
2. render html at once