wrapper function to prepare + execute + fetchAll