fixed a few warnings, made select of the day in the table working.
Still Work In Progress...