last fixes for database server to serve permalinks