Fix some access issues, revert sql_db_version being 0 by default