Proper error handling in apiProxy
Add array func, fix empty rows in array_agg

array_agg returned [None] insead of [] if there were no rows
Fix reservation history migration (dt strings)