handle error message while executing sql
fix addDay function and display issue while encountering duplicate store_id