Preliminary implementation of createRecord.
Primary key settings.
Add loans model.