working database and homepage form