Changed DB content type
Moved the form to the index file