added database calls and drop