Additional SQL implementation