added database functionality to createlist