Moved DATABASE declaration