Basic web-template, some query functionality for DB