database functions - added periodid filter
Added Period filtering