simplifying mysql execution