Basic databseclass that can connect to a databse.