Improvements

fix Foreign Keys, index's using mysql query
TODO check other DB Types
just find for mysql users !
Thanks to Younos Ali Al-Shamy https://www.facebook.com/Younos.alshamy