Added multidatabase support.