storing SQIUD log on MYSQL Database