fixed homedir error (sqlite)