SQL update

Now drops the tables if already existent.