add database stucture for older mysql version