final version of Database view