splitted db and html parts
set doctype and better input handling