separating tables and views