Adding mysql database rule