viewing logic from the db is now working!