Record MySQL Queries for a short time