fixing database issue using socketPath