added databse module and dispatcher