almost done with SQL stuff, there are still some files I will delete after commit