database accessing library