changed visability of the database class