some helper functions for ruby sequel.