This is a database class i share across my projects, pretty neat.