Database access library