Filtering out databasename for view