Loads all data into database so it is queryable.