simple sql querys useable from scripts