Helper library for database interaction