add prepared statements

Signed-off-by: Stefan Guelland <stefan@sguelland.de>