HTML tweaks, database implementation