Changed from embedded database to local database