Basic implementation of initialization, regular and prepared queries.