connecting db to rest operation