DatabaseManager added

The database will be created and upgraded automatically.