functional library for database configuraton