refactor server_databases: add function PMA_getListForSortDatabase