form on main page now posts to a database