optimize queries for onionoo_api; profiling;EXPLAINing;etc