added Database class and tested the 'list' view