Enabled multiple databases
Added multidatabase functionality