added database interface, to easy point between OSF and SCO