init the database link with the window

the login page is fine, I ignored the username, but we need to write a
get all items functions for grid display