cleaned up db table templates
cleaned up files and replaced tabs with spaces