Implemented complete DerbyDatabase

Stills needs testing