added function select in class Database