Add SQL support in persistence