Trying to fix db connection