establish db connection

need to fix db structure