add records to database