added database box. still not working propely