initial implementation for local DB handling