Adapting to user MySQL