Added getKey, read and write, all db queries have to be adjusted, something is wrong