added derby, started database layer