Updated service API for database