Testing and Analysis of Database Applications