Save records to db