Fix getting entry from wrong database and limiting int size