added database prototype