basic implementation to initialize a local database