working on db connection