dayofmonth added for postgresql - fixed array syntax