fixed HTML errors, database file cleanup, general fixes