dev: Moved getMaxId to LSActiveRecord, added option for different field / force refresh
dev: Fixing primary keys + using the right call in getMaxId to retrieve the primary key