setup config and local db