Fix callback null and mongoose conection