made getConnection() method static

refer  to Database\DatabaseConnectionHandler