editors almost working. only database todo