Trying to connect to database

Trying to get a database connection going when clicking on the submit
button of the cellex game.
I think I need to make a model, but the tutorials were very vague, and
they all spoke of validation. I just want to test this! No validation
needed yet!