modified matches to not use date or time parameter and use only the datetime parameter, modified the sqlite tables as well