pass database parameter to views#get()