Update mdl.php

Add methods for database connectivity