Useful Vertica DB functions