Rename getOne to getById
Don't use generators