first stab at user sql