Update program.cs to support configuration on check device function and DB operation.