Numpy Array Indexing With Sql Function Vs Stored