added database support
debug
debug2