create db function executeQueries.