Changed offset calculation a little bit, now the DB reads work for more than the first key.