small fix sql init