CURE-3617. Test for database