add method to mysql