added database logging and small rest api