basic changes

sql changes to match localhost
note:db on localhost has been modified