Conected view page to database