Move SQL to conf file