Working Database class