Added lastInsertId to model