Execute query to data dase