added database code in for testing

my laptop cant run nexus