works with static files and added database info