Some php functions to simplify MySQL requests for Big Web Project at 42