datbase opration using mysql functions