Add singleton to db class