Derby database problems