Updated database interaction
Merge pull request #2 from Ninjah45/Mike

Updated database interaction