Fix deprecated call to ->prepare