moved db from base model to dbConnection.php