add connection to db,version1

Each department has its only table,the design of the table is the easiest one