Database connection with the help of Singleton design pattern (OOP)