Application optimized database