allow exactly maxRecords to be added in db

Change-Id: I5eca498a10e69903d1b59bbd1fec1aac178923a2