Prepare to local mysql handling