add read db logic for report form