Updated to new YapDatabse methods for views