refactor vagrant and local db commands