key gen and removed sql_sqlite