Reconnect to the database when connection is dropped. 

When working on long process PDO is getting dropped, and as PDO lags the inbuilt reconnect functionality, we are storing the password, and username.