code not working properly with new database
working code after adding new database