fixed SR install, fixed APIS sql insert