PayCard mysql - stored procedure