only one db query in getFirstLastDay necessary