move Query to user functions (start programm)