fix prepared queries ids

all prepared queries had the same id ( aka keyspace )