fix ssh keys template
replace into doesn't work for postgresql
fix bound for number of ssh keys