better sql for install