one sql helper for all