:chart_with_upwards_trend: Connect db only if neccessary

Don't establish the connection when getting an instance of MySQL, but
when an operation on the db is performed