Added createdFlag parameter to findOrCreate callback