added database
fixed charts