Migration of database function
Two small JS / Layout bugs