removed the lastInsertId() function since the insert() function already returns the lastInsertId