Changed form method from get to post.
Added code to insert into database.