creation of the fuction searchindatabase and

chage of the database format