change FlexberrySample for using copy of database