Fixing the Spacing Isue and changes to reverted.sql
Seperate class for handling DB