added database stats

refactored resource files