Only extract basedir on self-update when database type is 1 (rev. 16)

Signed-off-by: nixnodes <code@eth.si>