Needs expression validation and to be connected
Hope this works
Worked on query and tried to connect to database