made a UTIL class for the BLL layer to hold some calculations so they dont clutter the code in DBManager.
some comments added