Remove deprecated mysql functions