db stuff and html editting