Port new SqlCursor from Eolie to Lollypop. Add allow_main_thread_execution(). Will backport it to Eolie