Added basic database support.