Testing Database class