add function for ex-divide to db