added database test, not working yet