Connecting homepage & database