preparing for db connection