adding basic structure for database persistance