This commit modification to database script and mail classes and some majore project restructuring to suite the current demand