[rafactor] removed all sql except extension registration