public static String buildCreateTableCommand(String colnames[], String tablename){
		String stmt = 
				"create table if not exists " + 
						tablename + 
						" (_id integer primary key autoincrement, ";
		int i = 1;
		for (; i < colnames.length - 1; i++){
			stmt += colnames[i] + " text not null,";
		}
		stmt += colnames[i] + " text);";
		log(stmt);
		return stmt;
	}