Library for connecting to a database and fixes various.