Static findOne function