creating rerouting and form submission entries into database