Moving custom post types from functions.php to db.