Refactored some code and added some validation.

Done some code reuse with the connection although i think theres an even
better way to do it... made it so fields remember the values upon
incorrect entry.
Forgot to change some names

Just oops, need a coffee :')
Ignore future database file
Separated the database connection

Honestly I am a little unsure if I have done this correctly, lets find
out :)
Correct filepath
Needs removing to add to ignore list
Deleted unused home2

No clue why this was here...
Changed DB Connection

NOTE: $con has changed to Database::$conn
Merge pull request #14 from jcmcreate/master

Merge pull request #13 from jcmcreate/dev
Revert "Merge pull request #13 from jcmcreate/dev"
Merge pull request #15 from jcmcreate/revert-14-master

Revert "Merge pull request #13 from jcmcreate/dev"
Merge pull request #16 from jcmcreate/dev

Dev to Master