bug fix at db connection module