Added crypto, moved db.php to app/core