Connects to db ok, lightbox not working