update readme, add missing creation of projects if not in memcache
add checks for $memcache and close $memcache after report is built
add database.php