FEATURE: update to sql dump, fn to query db, cleanup