added database scripts