Sqlite Get Max Value In Dictionary