mysql format date german php how to add foreign key in my sql from phpmyadmin